m = int(input())
sum = (11+m)*(m-10)//2
print(f"sum = {sum}")